package com.bsoft.ecommerce.controller;

import com.bsoft.ecommerce.service.SleuthTraceInfoService;
import lombok.extern.slf4j.Slf4j;
import org.checkerframework.checker.index.qual.SearchIndexBottom;
import org.checkerframework.checker.signature.qual.SignatureBottom;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: e-commerce-springclound
 * @description:
 * @author: hdh
 * @create: 2022:06:24 13:28
 */

@Slf4j
@RestController
@RequestMapping("/sleuth")
public class SleuthTraceInfoController {
    @Autowired
    private SleuthTraceInfoService  sleuthTraceInfoService;
    @GetMapping("/trace-info")
    public void  logCurrentTraceInfo(){
       sleuthTraceInfoService.logCurrentTranceInfo();
    }
}
